#!/usr/bin/env bash
# ******************************************************
# Author       : kaleo
# Last modified: 2017-05-15 19:33
# Email        : kaleo1990@hotmail.com
# Filename     : dbback
# Description  : 
# ******************************************************
dbname='myapis'
mysqldump -uroot -pkaleozhou $dbname > $dbname.sql
tar -zcvf $dbname.tar.gz $dbname.sql
rm $dbname.sql
